package com.fph.design.service;

import java.util.concurrent.TimeUnit;

/**
 * 定义使⽤接⼝
 * @InterfaceName CacheService
 * @Description TODO
 * @Author fph
 * @Date 2024-07-09 17:19
 **/
public interface CacheService {

    String get(final String key);
    void set(String key, String value);
    void set(String key, String value, long timeout, TimeUnit timeUnit);
    void del(String key);

}
